<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                template="./template.xhtml">
    
    <ui:define name="content">
        <h:form id="myForm">
            <h:panelGrid id="emailFormGrid"
                         columns="3">
                <h:outputLabel for="digits"
                               value="要计算的Pi的位数: " />
                <h:inputText id="digits"
                             value="${countManagedBean.max}" />
                <h:message for="digits" />

                <f:facet name="footer">
                    <h:panelGroup style="display:block; text-align:center">
                    
                        <h:commandButton id="sendButton"
                                         action="#{countManagedBean.begin()}"
                                         value="计算" >
                         </h:commandButton>
                    </h:panelGroup>
                </f:facet>

            </h:panelGrid>

        </h:form>
    </ui:define>

</ui:composition>
